package com.i2863.watchdog;

import com.i2863.watchdog.inspect.Inspector;

import java.util.List;

/**
 * @author xuweiwei
 * @date 2017/12/6
 */
public class InspectTask {

    /**
     * 通知名单
     */
    private ContactGroup contactGroup ;
    /**
     * 检测地址
     */
    private String url;

    /**
     * http方法
     */
    private String method;
    /**
     * 检测者
     */
    private Inspector inspector;

    /**
     * 名称
     */
    private String name;

    /**
     * get方法
     */
    public static final String  GET = "get";
    /**
     * post方法
     */
    public static final String POST="post";

    public ContactGroup getContactGroup() {
        return contactGroup;
    }

    public void setContactGroup(ContactGroup contactGroup) {
        this.contactGroup = contactGroup;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getMethod() {
        return method;
    }

    public void setMethod(String method) {
        this.method = method;
    }

    public Inspector getInspector() {
        return inspector;
    }

    public void setInspector(Inspector inspector) {
        this.inspector = inspector;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
